package io.github.kimmking.gateway.filter;

import io.netty.handler.codec.http.FullHttpResponse;

public class HeaderHttpResponseFilter implements HttpResponseFilter {
    private String realUrl=null;
    //请求的真实地址
    public HeaderHttpResponseFilter(String realUrl){
        this.realUrl=realUrl;
    }
    @Override
    public void filter(FullHttpResponse response) {
        response.headers().set("from", this.realUrl);
    }
}
